package cn.tedu.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "storage") //name表示调用的服务名
public interface StorageClient {
    @GetMapping("/storage/decrease")
    String decrease(@RequestParam("productId") Long productId,
                    @RequestParam("count")Integer count);
}
